﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxDateEdit-1#set-a-date-range">
    <CodeSnippetTabPage Text="Razor">@(@"<DxDateEdit @bind-Date=""@DateTimeValue""
            MinDate=""@MinDate""
            MaxDate=""@MaxDate"">
</DxDateEdit>

@code {
    DateTime DateTimeValue { get; set; } = DateTime.Now;
    DateTime MinDate { get; set; }
    DateTime MaxDate { get; set; }

    protected override void OnInitialized() {
        MinDate = new DateTime(DateTimeValue.Year, DateTimeValue.Month, 1);
        MaxDate = new DateTime(DateTimeValue.Year, DateTimeValue.Month, DateTime.DaysInMonth(DateTimeValue.Year, DateTimeValue.Month));
    }
}")</CodeSnippetTabPage>
</CodeSnippetTabbed>
